{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\jtrounstine\Dropbox\RCV Project\JEPS\JEPS_log.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}17 Jan 2023, 14:15:21

{com}. cd "C:\Users\jtrounstine\Dropbox\RCV Project\JEPS\"
{res}C:\Users\jtrounstine\Dropbox\RCV Project\JEPS

{com}. do "C:\Users\JTROUN~1\AppData\Local\Temp\STD3ff8_000000.tmp"
{txt}
{com}. use JEPS_replication.dta
{txt}
{com}. 
. ***Figure 3
. regress VotedFor2 i.candRace if Partisan==0 & RCV==0 

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     7,548
{txt}{hline 13}{c +}{hline 34}   F(3, 7544)      = {res}    32.78
{txt}       Model {c |} {res} 21.5851924         3  7.19506412   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 1655.74814     7,544   .21947881   {txt}R-squared       ={res}    0.0129
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0125
{txt}       Total {c |} {res} 1677.33333     7,547  .222251667   {txt}Root MSE        =   {res} .46849

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   VotedFor2{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}candRace {c |}
{space 1}Black/AfAm  {c |}{col 14}{res}{space 2}-.1330301{col 26}{space 2} .0150964{col 37}{space 1}   -8.81{col 46}{space 3}0.000{col 54}{space 4}-.1626233{col 67}{space 3} -.103437
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.1247542{col 26}{space 2} .0151356{col 37}{space 1}   -8.24{col 46}{space 3}0.000{col 54}{space 4}-.1544242{col 67}{space 3}-.0950841
{txt}{space 5}Latino  {c |}{col 14}{res}{space 2}-.0912747{col 26}{space 2} .0152162{col 37}{space 1}   -6.00{col 46}{space 3}0.000{col 54}{space 4}-.1211027{col 67}{space 3}-.0614468
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} .4195023{col 26}{space 2} .0105578{col 37}{space 1}   39.73{col 46}{space 3}0.000{col 54}{space 4} .3988061{col 67}{space 3} .4401985
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store Plurality
{txt}
{com}. regress VotedFor2 i.candRace if Partisan==0 & RCV==1 

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     9,996
{txt}{hline 13}{c +}{hline 34}   F(3, 9992)      = {res}    23.70
{txt}       Model {c |} {res} 15.6925825         3  5.23086082   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 2205.64075     9,992  .220740668   {txt}R-squared       ={res}    0.0071
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0068
{txt}       Total {c |} {res} 2221.33333     9,995  .222244456   {txt}Root MSE        =   {res} .46983

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   VotedFor2{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}candRace {c |}
{space 1}Black/AfAm  {c |}{col 14}{res}{space 2}-.1098735{col 26}{space 2} .0133356{col 37}{space 1}   -8.24{col 46}{space 3}0.000{col 54}{space 4} -.136014{col 67}{space 3}-.0837331
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.0712141{col 26}{space 2} .0133038{col 37}{space 1}   -5.35{col 46}{space 3}0.000{col 54}{space 4}-.0972922{col 67}{space 3} -.045136
{txt}{space 5}Latino  {c |}{col 14}{res}{space 2} -.072516{col 26}{space 2} .0132946{col 37}{space 1}   -5.45{col 46}{space 3}0.000{col 54}{space 4}-.0985761{col 67}{space 3}-.0464559
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}  .396851{col 26}{space 2} .0094401{col 37}{space 1}   42.04{col 46}{space 3}0.000{col 54}{space 4} .3783465{col 67}{space 3} .4153556
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store RCV
{txt}
{com}. 
. ***If do not already have coefplot installed in Stata, install using this command: ssc install coefplot, replace
. coefplot (Plurality, label (Plurality Election) msymbol(triangle) base drop(_cons) xline(0, lwidth(medium) lp(dot) lc(black)) plotregion(color(white)) graphregion(color(white))) (RCV, label (RCV Election) msymbol(circle) base drop(_cons) plotregion(color(white)) graphregion(color(white)))
{res}{txt}
{com}. 
. ***In text: time to vote for mayor
. sum pl_np_mayor_time_pagesubmit rcv_np_mayor_time_pagesubmit

{txt}    Variable {c |}        Obs        Mean    Std. dev.       Min        Max
{hline 13}{c +}{hline 57}
pl_np_mayo~t {c |}{res}      7,548    15.06402    12.63483        1.1    117.891
{txt}rcv_np_may~t {c |}{res}      9,996    26.97831    25.95634      3.428    509.799
{txt}
{com}. 
. 
. ***Figure 4 Left Panel
. regress VotedFor2 i.candRace if Partisan==0 & ideo3==1

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     4,416
{txt}{hline 13}{c +}{hline 34}   F(3, 4412)      = {res}     2.62
{txt}       Model {c |} {res} 1.74692035         3  .582306784   {txt}Prob > F        ={res}    0.0490
{txt}    Residual {c |} {res} 979.586413     4,412  .222027745   {txt}R-squared       ={res}    0.0018
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0011
{txt}       Total {c |} {res} 981.333333     4,415  .222272556   {txt}Root MSE        =   {res}  .4712

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   VotedFor2{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}candRace {c |}
{space 1}Black/AfAm  {c |}{col 14}{res}{space 2} .0462944{col 26}{space 2} .0200244{col 37}{space 1}    2.31{col 46}{space 3}0.021{col 54}{space 4} .0070365{col 67}{space 3} .0855522
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}  .027629{col 26}{space 2} .0198412{col 37}{space 1}    1.39{col 46}{space 3}0.164{col 54}{space 4}-.0112698{col 67}{space 3} .0665277
{txt}{space 5}Latino  {c |}{col 14}{res}{space 2} .0500958{col 26}{space 2} .0200529{col 37}{space 1}    2.50{col 46}{space 3}0.013{col 54}{space 4} .0107821{col 67}{space 3} .0894096
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} .3027361{col 26}{space 2} .0139987{col 37}{space 1}   21.63{col 46}{space 3}0.000{col 54}{space 4} .2752916{col 67}{space 3} .3301806
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store liberal
{txt}
{com}. regress VotedFor2 i.candRace if Partisan==0 & ideo3==2

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     5,592
{txt}{hline 13}{c +}{hline 34}   F(3, 5588)      = {res}    16.19
{txt}       Model {c |} {res} 10.7096629         3  3.56988762   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res}   1231.957     5,588  .220464747   {txt}R-squared       ={res}    0.0086
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0081
{txt}       Total {c |} {res} 1242.66667     5,591  .222261969   {txt}Root MSE        =   {res} .46954

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   VotedFor2{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}candRace {c |}
{space 1}Black/AfAm  {c |}{col 14}{res}{space 2}-.1138048{col 26}{space 2} .0176778{col 37}{space 1}   -6.44{col 46}{space 3}0.000{col 54}{space 4}-.1484601{col 67}{space 3}-.0791494
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.0979237{col 26}{space 2} .0178608{col 37}{space 1}   -5.48{col 46}{space 3}0.000{col 54}{space 4}-.1329377{col 67}{space 3}-.0629097
{txt}{space 5}Latino  {c |}{col 14}{res}{space 2}-.0774345{col 26}{space 2} .0177121{col 37}{space 1}   -4.37{col 46}{space 3}0.000{col 54}{space 4}-.1121571{col 67}{space 3}-.0427119
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} .4055595{col 26}{space 2} .0125355{col 37}{space 1}   32.35{col 46}{space 3}0.000{col 54}{space 4} .3809851{col 67}{space 3} .4301339
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store moderate
{txt}
{com}. regress VotedFor2 i.candRace if Partisan==0 & ideo3==3

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     7,536
{txt}{hline 13}{c +}{hline 34}   F(3, 7532)      = {res}    80.55
{txt}       Model {c |} {res} 52.0564291         3   17.352143   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 1622.61024     7,532  .215428869   {txt}R-squared       ={res}    0.0311
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0307
{txt}       Total {c |} {res} 1674.66667     7,535  .222251714   {txt}Root MSE        =   {res} .46414

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   VotedFor2{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}candRace {c |}
{space 1}Black/AfAm  {c |}{col 14}{res}{space 2}-.2227067{col 26}{space 2} .0150974{col 37}{space 1}  -14.75{col 46}{space 3}0.000{col 54}{space 4}-.2523018{col 67}{space 3}-.1931116
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.1642981{col 26}{space 2}  .015053{col 37}{space 1}  -10.91{col 46}{space 3}0.000{col 54}{space 4}-.1938061{col 67}{space 3}  -.13479
{txt}{space 5}Latino  {c |}{col 14}{res}{space 2}-.1608258{col 26}{space 2} .0151158{col 37}{space 1}  -10.64{col 46}{space 3}0.000{col 54}{space 4} -.190457{col 67}{space 3}-.1311946
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} .4696335{col 26}{space 2} .0106203{col 37}{space 1}   44.22{col 46}{space 3}0.000{col 54}{space 4} .4488148{col 67}{space 3} .4904522
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store conservative
{txt}
{com}. 
. coefplot (liberal, label (Liberals) msymbol(triangle) base drop(_cons) xline(0, lwidth(medium) lp(dot) lc(black)) plotregion(color(white)) graphregion(color(white)) legend(row(1))) (moderate, label (Moderates) msymbol(circle) base drop(_cons)) (conservative, label (Conservatives) msymbol(square) base drop(_cons))
{res}{txt}
{com}. 
. ***Figure 4 Right Panel
. regress VotedFor2 i.candRace if Partisan==0  & race2==0

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}    11,928
{txt}{hline 13}{c +}{hline 34}   F(3, 11924)     = {res}    81.87
{txt}       Model {c |} {res} 53.4993918         3  17.8331306   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 2597.16727    11,924   .21781007   {txt}R-squared       ={res}    0.0202
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0199
{txt}       Total {c |} {res} 2650.66667    11,927  .222240854   {txt}Root MSE        =   {res}  .4667

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   VotedFor2{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}candRace {c |}
{space 1}Black/AfAm  {c |}{col 14}{res}{space 2}-.1785739{col 26}{space 2} .0120732{col 37}{space 1}  -14.79{col 46}{space 3}0.000{col 54}{space 4}-.2022393{col 67}{space 3}-.1549085
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.1329475{col 26}{space 2} .0120431{col 37}{space 1}  -11.04{col 46}{space 3}0.000{col 54}{space 4}-.1565539{col 67}{space 3} -.109341
{txt}{space 5}Latino  {c |}{col 14}{res}{space 2}-.1310276{col 26}{space 2} .0120257{col 37}{space 1}  -10.90{col 46}{space 3}0.000{col 54}{space 4}   -.1546{col 67}{space 3}-.1074552
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} .4431295{col 26}{space 2} .0084617{col 37}{space 1}   52.37{col 46}{space 3}0.000{col 54}{space 4} .4265431{col 67}{space 3} .4597159
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store white
{txt}
{com}. regress VotedFor2 i.candRace if Partisan==0 & race2==1

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     2,196
{txt}{hline 13}{c +}{hline 34}   F(3, 2192)      = {res}    15.57
{txt}       Model {c |} {res} 10.1816721         3  3.39389069   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 477.818328     2,192  .217982814   {txt}R-squared       ={res}    0.0209
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0195
{txt}       Total {c |} {res}        488     2,195  .222323462   {txt}Root MSE        =   {res} .46689

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   VotedFor2{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}candRace {c |}
{space 1}Black/AfAm  {c |}{col 14}{res}{space 2} .1074774{col 26}{space 2} .0281441{col 37}{space 1}    3.82{col 46}{space 3}0.000{col 54}{space 4} .0522854{col 67}{space 3} .1626693
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.0575949{col 26}{space 2} .0280947{col 37}{space 1}   -2.05{col 46}{space 3}0.040{col 54}{space 4}-.1126899{col 67}{space 3}-.0024999
{txt}{space 5}Latino  {c |}{col 14}{res}{space 2}-.0593776{col 26}{space 2} .0284678{col 37}{space 1}   -2.09{col 46}{space 3}0.037{col 54}{space 4}-.1152042{col 67}{space 3}-.0035509
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}  .335175{col 26}{space 2}  .020036{col 37}{space 1}   16.73{col 46}{space 3}0.000{col 54}{space 4} .2958834{col 67}{space 3} .3744665
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store black
{txt}
{com}. regress VotedFor2 i.candRace if Partisan==0  & race2==2

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}       996
{txt}{hline 13}{c +}{hline 34}   F(3, 992)       = {res}     7.04
{txt}       Model {c |} {res} 4.61264539         3  1.53754846   {txt}Prob > F        ={res}    0.0001
{txt}    Residual {c |} {res} 216.720688       992  .218468435   {txt}R-squared       ={res}    0.0208
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0179
{txt}       Total {c |} {res} 221.333333       995  .222445561   {txt}Root MSE        =   {res} .46741

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   VotedFor2{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}candRace {c |}
{space 1}Black/AfAm  {c |}{col 14}{res}{space 2}-.1070667{col 26}{space 2} .0406055{col 37}{space 1}   -2.64{col 46}{space 3}0.009{col 54}{space 4}-.1867493{col 67}{space 3}-.0273842
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2} .0867368{col 26}{space 2}  .041696{col 37}{space 1}    2.08{col 46}{space 3}0.038{col 54}{space 4} .0049143{col 67}{space 3} .1685593
{txt}{space 5}Latino  {c |}{col 14}{res}{space 2} .0053307{col 26}{space 2}  .041453{col 37}{space 1}    0.13{col 46}{space 3}0.898{col 54}{space 4}-.0760149{col 67}{space 3} .0866762
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} .3393502{col 26}{space 2} .0280837{col 37}{space 1}   12.08{col 46}{space 3}0.000{col 54}{space 4} .2842399{col 67}{space 3} .3944605
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store asian
{txt}
{com}. regress VotedFor2 i.candRace if Partisan==0 & race2==4

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,620
{txt}{hline 13}{c +}{hline 34}   F(3, 1616)      = {res}    17.77
{txt}       Model {c |} {res}  11.494593         3    3.831531   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 348.505407     1,616  .215659287   {txt}R-squared       ={res}    0.0319
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0301
{txt}       Total {c |} {res}        360     1,619  .222359481   {txt}Root MSE        =   {res} .46439

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   VotedFor2{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}candRace {c |}
{space 1}Black/AfAm  {c |}{col 14}{res}{space 2}-.0140436{col 26}{space 2} .0326295{col 37}{space 1}   -0.43{col 46}{space 3}0.667{col 54}{space 4}-.0780441{col 67}{space 3} .0499569
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2} .0473558{col 26}{space 2} .0332351{col 37}{space 1}    1.42{col 46}{space 3}0.154{col 54}{space 4}-.0178327{col 67}{space 3} .1125443
{txt}{space 5}Latino  {c |}{col 14}{res}{space 2} .1954996{col 26}{space 2} .0325731{col 37}{space 1}    6.00{col 46}{space 3}0.000{col 54}{space 4} .1316097{col 67}{space 3} .2593896
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} .2748092{col 26}{space 2} .0234254{col 37}{space 1}   11.73{col 46}{space 3}0.000{col 54}{space 4} .2288617{col 67}{space 3} .3207566
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store latino
{txt}
{com}. 
. coefplot (white, label (White Resp) msymbol(triangle) base drop(_cons) xline(0, lwidth(medium) lp(dot) lc(black)) plotregion(color(white)) graphregion(color(white)) legend(row(1))) (black, label (Black Resp) msymbol(circle) base drop(_cons)) (asian, label (Asian Resp) msymbol(square) base drop(_cons)) (latino, label (Latino Resp) msymbol(diamond) base drop(_cons))
{res}{txt}
{com}. 
. ****Figure 5
. regress VotedFor2 i.candRace if Partisan==0 & RCV==1 

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     9,996
{txt}{hline 13}{c +}{hline 34}   F(3, 9992)      = {res}    23.70
{txt}       Model {c |} {res} 15.6925825         3  5.23086082   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 2205.64075     9,992  .220740668   {txt}R-squared       ={res}    0.0071
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0068
{txt}       Total {c |} {res} 2221.33333     9,995  .222244456   {txt}Root MSE        =   {res} .46983

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   VotedFor2{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}candRace {c |}
{space 1}Black/AfAm  {c |}{col 14}{res}{space 2}-.1098735{col 26}{space 2} .0133356{col 37}{space 1}   -8.24{col 46}{space 3}0.000{col 54}{space 4} -.136014{col 67}{space 3}-.0837331
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.0712141{col 26}{space 2} .0133038{col 37}{space 1}   -5.35{col 46}{space 3}0.000{col 54}{space 4}-.0972922{col 67}{space 3} -.045136
{txt}{space 5}Latino  {c |}{col 14}{res}{space 2} -.072516{col 26}{space 2} .0132946{col 37}{space 1}   -5.45{col 46}{space 3}0.000{col 54}{space 4}-.0985761{col 67}{space 3}-.0464559
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}  .396851{col 26}{space 2} .0094401{col 37}{space 1}   42.04{col 46}{space 3}0.000{col 54}{space 4} .3783465{col 67}{space 3} .4153556
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store NonPart
{txt}
{com}. regress VotedFor2 i.candRace if Partisan==1 & RCV==1 

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}    10,452
{txt}{hline 13}{c +}{hline 34}   F(3, 10448)     = {res}     4.23
{txt}       Model {c |} {res} 2.82065951         3  .940219835   {txt}Prob > F        ={res}    0.0053
{txt}    Residual {c |} {res} 2319.84601    10,448  .222037328   {txt}R-squared       ={res}    0.0012
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0009
{txt}       Total {c |} {res} 2322.66667    10,451  .222243485   {txt}Root MSE        =   {res} .47121

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   VotedFor2{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}candRace {c |}
{space 1}Black/AfAm  {c |}{col 14}{res}{space 2}-.0400101{col 26}{space 2} .0130341{col 37}{space 1}   -3.07{col 46}{space 3}0.002{col 54}{space 4}-.0655594{col 67}{space 3}-.0144608
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.0244241{col 26}{space 2}  .012989{col 37}{space 1}   -1.88{col 46}{space 3}0.060{col 54}{space 4} -.049885{col 67}{space 3} .0010368
{txt}{space 5}Latino  {c |}{col 14}{res}{space 2}-.0025937{col 26}{space 2} .0131187{col 37}{space 1}   -0.20{col 46}{space 3}0.843{col 54}{space 4}-.0283088{col 67}{space 3} .0231214
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} .3502499{col 26}{space 2} .0092394{col 37}{space 1}   37.91{col 46}{space 3}0.000{col 54}{space 4}  .332139{col 67}{space 3} .3683609
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store Partisan
{txt}
{com}. 
. coefplot (NonPart, label (Non Partisan Election) msymbol(triangle) base drop(_cons) xline(0, lwidth(medium) lp(dot) lc(black)) plotregion(color(white)) graphregion(color(white))) (Partisan, label (Partisan Election) msymbol(circle) base drop(_cons) plotregion(color(white)) graphregion(color(white)))
{res}{txt}
{com}. 
. 
. ***Figure 6 (see Excel workbook for figure)
.  table  Rank candRace if atlarge==0 & Partisan==0 
{res}
{smcl}
{reset}{...}
{hline 7}{c -}{c TT}{c -}{c -}{hline 5}{c -}{c -}{c -}{hline 10}{c -}{c -}{c -}{hline 5}{c -}{c -}{c -}{hline 6}{c -}{c -}{c -}{hline 5}
{space 7} {c |}  {space 18}candRace{space 17}
{space 7} {c |}  White   Black/AfAm   Asian   Latino   Total
{hline 7}{c -}{c +}{c -}{c -}{hline 5}{c -}{c -}{c -}{hline 10}{c -}{c -}{c -}{hline 5}{c -}{c -}{c -}{hline 6}{c -}{c -}{c -}{hline 5}
Rank{space 3} {c |}  {space 5}   {space 10}   {space 5}   {space 6}   {space 5}
  1{space 4} {c |}  {space 2}{result:617}   {space 7}{result:401}   {space 2}{result:475}   {space 3}{result:437}   {result:1,930}
  2{space 4} {c |}  {space 2}{result:466}   {space 7}{result:472}   {space 2}{result:493}   {space 3}{result:499}   {result:1,930}
  3{space 4} {c |}  {space 2}{result:423}   {space 7}{result:485}   {space 2}{result:498}   {space 3}{result:524}   {result:1,930}
  4{space 4} {c |}  {space 2}{result:429}   {space 7}{result:568}   {space 2}{result:470}   {space 3}{result:463}   {result:1,930}
  Total {c |}  {result:1,935}   {space 5}{result:1,926}   {result:1,936}   {space 1}{result:1,923}   {result:7,720}
{hline 7}{c -}{c BT}{c -}{c -}{hline 5}{c -}{c -}{c -}{hline 10}{c -}{c -}{c -}{hline 5}{c -}{c -}{c -}{hline 6}{c -}{c -}{c -}{hline 5}

{com}.  
.  
.  ***Appendix 
. 
. ***Table A1 
.  use JEPS_replication.dta, clear
{txt}
{com}.  keep if election=="mayorC1"
{txt}(32,958 observations deleted)

{com}.  tab gender

   {txt}R gender {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
       male {c |}{res}      1,103       45.62       45.62
{txt}     female {c |}{res}      1,310       54.18       99.79
{txt}  nonbinary {c |}{res}          5        0.21      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      2,418      100.00
{txt}
{com}.  tab race2 latino

           {txt}{c |}       R Latino
   R race2 {c |}    Latino  Not Latin {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
     White {c |}{res}       114      1,494 {txt}{c |}{res}     1,608 
{txt}Black/AfAm {c |}{res}        25        296 {txt}{c |}{res}       321 
{txt}     Asian {c |}{res}         9        132 {txt}{c |}{res}       141 
{txt}    Latino {c |}{res}       236          1 {txt}{c |}{res}       237 
{txt}     Other {c |}{res}        37         74 {txt}{c |}{res}       111 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       421      1,997 {txt}{c |}{res}     2,418 
{txt}
{com}.  tab pid7

      {txt}party ID (7pt scale) {c |}      Freq.     Percent        Cum.
{hline 27}{c +}{hline 35}
           strong democrat {c |}{res}        675       28.14       28.14
{txt}  not very strong democrat {c |}{res}        321       13.38       41.52
{txt}           democrat leaner {c |}{res}        116        4.84       46.35
{txt}               independent {c |}{res}        213        8.88       55.23
{txt}         republican leaner {c |}{res}        117        4.88       60.11
{txt}not very strong republican {c |}{res}        296       12.34       72.45
{txt}         strong republican {c |}{res}        661       27.55      100.00
{txt}{hline 27}{c +}{hline 35}
                     Total {c |}{res}      2,399      100.00
{txt}
{com}.  
. ***Table A3
.  use JEPS_replication_2.dta, clear
{txt}
{com}.  regress icandtxt i.candRace i.candGender

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     1,999
{txt}{hline 13}{c +}{hline 34}   F(4, 1994)      = {res}    45.91
{txt}       Model {c |} {res} 193.071788         4  48.2679469   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 2096.41596     1,994  1.05136206   {txt}R-squared       ={res}    0.0843
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0825
{txt}       Total {c |} {res} 2289.48774     1,998  1.14588976   {txt}Root MSE        =   {res} 1.0254

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}    icandtxt{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}candRace {c |}
{space 6}Black  {c |}{col 14}{res}{space 2}-.8628371{col 26}{space 2} .0651714{col 37}{space 1}  -13.24{col 46}{space 3}0.000{col 54}{space 4}-.9906482{col 67}{space 3} -.735026
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.5324035{col 26}{space 2} .0650789{col 37}{space 1}   -8.18{col 46}{space 3}0.000{col 54}{space 4}-.6600332{col 67}{space 3}-.4047737
{txt}{space 3}Hispanic  {c |}{col 14}{res}{space 2}-.4400702{col 26}{space 2} .0648704{col 37}{space 1}   -6.78{col 46}{space 3}0.000{col 54}{space 4} -.567291{col 67}{space 3}-.3128493
{txt}{space 12} {c |}
{space 2}candGender {c |}
{space 5}Female  {c |}{col 14}{res}{space 2}-.1172865{col 26}{space 2} .0459687{col 37}{space 1}   -2.55{col 46}{space 3}0.011{col 54}{space 4}-.2074381{col 67}{space 3}-.0271349
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 3.533864{col 26}{space 2} .0521791{col 37}{space 1}   67.73{col 46}{space 3}0.000{col 54}{space 4} 3.431533{col 67}{space 3} 3.636196
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}.  
. ***Table A4
.  table candRace, command(sem meanrtxt1 )
{res}
{smcl}
{reset}{...}
{hline 16}{c -}{c TT}{c -}{c -}{hline 15}{c -}{c -}{c -}{hline 14}
{space 16} {c |}  mean(meanrtxt1)   var(meanrtxt1)
{hline 16}{c -}{c +}{c -}{c -}{hline 15}{c -}{c -}{c -}{hline 14}
candidate's race {c |}  {space 15}   {space 14}
  0{space 13} {c |}  {space 8}{result:4.04327}   {space 6}{result:.1444236}
  Black{space 9} {c |}  {space 7}{result:3.661678}   {space 6}{result:.0868669}
  Asian{space 9} {c |}  {space 7}{result:3.984913}   {space 6}{result:.0846287}
  Hispanic{space 6} {c |}  {space 8}{result:3.79077}   {space 6}{result:.1032096}
  Total{space 9} {c |}  {space 7}{result:3.869432}   {space 6}{result:.1277977}
{hline 16}{c -}{c BT}{c -}{c -}{hline 15}{c -}{c -}{c -}{hline 14}

{com}.  table candGender, command(sem meanrtxt1 )
{res}
{smcl}
{reset}{...}
{hline 18}{c -}{c TT}{c -}{c -}{hline 15}{c -}{c -}{c -}{hline 14}
{space 18} {c |}  mean(meanrtxt1)   var(meanrtxt1)
{hline 18}{c -}{c +}{c -}{c -}{hline 15}{c -}{c -}{c -}{hline 14}
candidate's gender {c |}  {space 15}   {space 14}
  Male{space 12} {c |}  {space 8}{result:3.95578}   {space 6}{result:.1373878}
  Female{space 10} {c |}  {space 7}{result:3.782391}   {space 6}{result:.1030386}
  Total{space 11} {c |}  {space 7}{result:3.869432}   {space 6}{result:.1277977}
{hline 18}{c -}{c BT}{c -}{c -}{hline 15}{c -}{c -}{c -}{hline 14}

{com}. 
. ***Figure A1
. use JEPS_replication.dta, clear
{txt}
{com}. regress VotedFor2 i.candRace if Partisan==0 & RCV==0 

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     7,548
{txt}{hline 13}{c +}{hline 34}   F(3, 7544)      = {res}    32.78
{txt}       Model {c |} {res} 21.5851924         3  7.19506412   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 1655.74814     7,544   .21947881   {txt}R-squared       ={res}    0.0129
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0125
{txt}       Total {c |} {res} 1677.33333     7,547  .222251667   {txt}Root MSE        =   {res} .46849

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   VotedFor2{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}candRace {c |}
{space 1}Black/AfAm  {c |}{col 14}{res}{space 2}-.1330301{col 26}{space 2} .0150964{col 37}{space 1}   -8.81{col 46}{space 3}0.000{col 54}{space 4}-.1626233{col 67}{space 3} -.103437
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.1247542{col 26}{space 2} .0151356{col 37}{space 1}   -8.24{col 46}{space 3}0.000{col 54}{space 4}-.1544242{col 67}{space 3}-.0950841
{txt}{space 5}Latino  {c |}{col 14}{res}{space 2}-.0912747{col 26}{space 2} .0152162{col 37}{space 1}   -6.00{col 46}{space 3}0.000{col 54}{space 4}-.1211027{col 67}{space 3}-.0614468
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2} .4195023{col 26}{space 2} .0105578{col 37}{space 1}   39.73{col 46}{space 3}0.000{col 54}{space 4} .3988061{col 67}{space 3} .4401985
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store NonPart
{txt}
{com}. regress VotedFor2 i.candRace if Partisan==1 & RCV==0 

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}     7,380
{txt}{hline 13}{c +}{hline 34}   F(3, 7376)      = {res}     7.64
{txt}       Model {c |} {res} 5.07853279         3  1.69284426   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 1634.92147     7,376  .221654212   {txt}R-squared       ={res}    0.0031
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.0027
{txt}       Total {c |} {res}       1640     7,379  .222252338   {txt}Root MSE        =   {res}  .4708

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}   VotedFor2{col 14}{c |} Coefficient{col 26}  Std. err.{col 38}      t{col 46}   P>|t|{col 54}     [95% con{col 67}f. interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}candRace {c |}
{space 1}Black/AfAm  {c |}{col 14}{res}{space 2}-.0564976{col 26}{space 2} .0155433{col 37}{space 1}   -3.63{col 46}{space 3}0.000{col 54}{space 4} -.086967{col 67}{space 3}-.0260282
{txt}{space 6}Asian  {c |}{col 14}{res}{space 2}-.0699342{col 26}{space 2}  .015505{col 37}{space 1}   -4.51{col 46}{space 3}0.000{col 54}{space 4}-.1003285{col 67}{space 3}-.0395398
{txt}{space 5}Latino  {c |}{col 14}{res}{space 2}-.0413347{col 26}{space 2} .0154468{col 37}{space 1}   -2.68{col 46}{space 3}0.007{col 54}{space 4}-.0716147{col 67}{space 3}-.0110546
{txt}{space 12} {c |}
{space 7}_cons {c |}{col 14}{res}{space 2}  .375203{col 26}{space 2} .0109548{col 37}{space 1}   34.25{col 46}{space 3}0.000{col 54}{space 4} .3537285{col 67}{space 3} .3966776
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. est store Partisan
{txt}
{com}. 
. coefplot (NonPart, label (Non Partisan Election) msymbol(triangle) base drop(_cons) xline(0, lwidth(medium) lp(dot) lc(black)) plotregion(color(white)) graphregion(color(white))) (Partisan, label (Partisan Election) msymbol(circle) base drop(_cons) plotregion(color(white)) graphregion(color(white)))
{res}{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\jtrounstine\Dropbox\RCV Project\JEPS\JEPS_log.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}17 Jan 2023, 14:16:38
{txt}{.-}
{smcl}
{txt}{sf}{ul off}